<script>
export  default {
  methods:{
    baidu(){
      window.location.href = 'https://www.baidu.com';
    }
  }
}
</script>

<template style="height: 100%">
  <el-menu style="height: 100%" background-color="#545c64" text-color="#fff" active-text-color="#ffd04b" default-active="/Home0" >
    <el-menu-item index="/Home0">
      <i class="el-icon-s-home"></i>
      <span style="top-bar-button: url('https://www.baidu.com')" @click="baidu">首页</span>
<!--      <el-button @click="baidu">首页</el-button>-->
    </el-menu-item >
    <el-menu-item index="/Home1">
      <i class="el-icon-s-opportunity"></i>
      <span>导航一</span>
    </el-menu-item>
    <el-menu-item index="/Home2">
      <i class="el-icon-s-data"></i>
      <span>导航2</span>
    </el-menu-item>
  </el-menu>
</template>

<style scoped>

</style>